package cn.sparrowx.druid.controller;

import cn.sparrowx.druid.domain.ClassroomDepartment;
import cn.sparrowx.druid.mapper.ClassroomDepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;


/**
 * cn.sparrowx.druid.controller
 *
 * @author bosong
 * @since 2018/6/11 14:54.
 */
@RestController
public class TestController {
    @Autowired
    private ClassroomDepartmentMapper classroomDepartmentMapper;

    @GetMapping(value = "/getDepartment")
    public Object getDepartment(){
        List<ClassroomDepartment> list=classroomDepartmentMapper.getClassroomDepartmentList();
        return list;

    }
}
